(function($){
	$.fn.pageQuitSecurity = function() {
		
		var launchAlert = false;
		
		$(window).unload(function() {
			if (launchAlert) alert('ok') ;
			else alert('nok') ;
		});
	};
})(jQuery);